package org.letva.toink.common;

@SuppressWarnings("serial")
public class ToinkException extends Exception {
	private Exception actualException;

	public ToinkException(String message) {
		super(message );
	}
	
	public ToinkException(Exception expetion){
		actualException = expetion;
	}
	
	public ToinkException(String message, Exception exception) {
		super(message + ", original message: " + exception.getMessage(), exception);
	}
	
	public Exception getActualException() {
		return actualException;
	}

	public void setActualException(Exception actualException) {
		this.actualException = actualException;
	}

	
}
